package com.criticalbotch.ijnition;

import java.util.Date;

public class EnjinUser {

	private int ID;
	private String username;
	private int forum_post_count;
	private int forum_votes;
	private int forum_up_votes;
	private int forum_down_votes;
	private long lastseen;
	private long datejoined;

	public EnjinUser() {

	}

	public Date getDateJoined() {
		Date date = new Date(datejoined * 1000);
		return date;
	}

	public int getForumDownVotes() {
		return forum_down_votes;
	}

	public int getForumPostCount() {
		return forum_post_count;
	}

	public int getForumUpVotes() {
		return forum_up_votes;
	}

	public int getForumVotes() {
		return forum_votes;
	}

	public int getID() {
		return ID;
	}

	public Date getLastSeen() {
		Date date = new Date(lastseen * 1000);
		return date;
	}

	public String getUsername() {
		return username;
	}

	public void setDateJoined(long datecode) {
		datejoined = datecode;
	}

	public void setForumDownVotes(int n) {
		forum_down_votes = n;
	}

	public void setForumPostCount(int n) {
		forum_post_count = n;
	}

	public void setForumUpVotes(int n) {
		forum_up_votes = n;
	}

	public void setForumVotes(int n) {
		forum_votes = n;
	}

	public void setID(int id) {
		ID = id;
	}

	public void setLastSeen(long datecode) {
		lastseen = datecode;
	}

	public void setUsername(String n) {
		username = n;
	}

	@Override
	public String toString() {
		String ret = "";
		ret += "ID: " + getID() + "\n";
		ret += "Name: " + getUsername() + "\n";
		ret += "Post Count: " + getForumPostCount() + "\n";
		ret += "Votes: " + getForumVotes() + "\n";
		ret += "Votes Up: " + getForumUpVotes() + "\n";
		ret += "Votes Down: " + getForumDownVotes() + "\n";
		ret += "Last Seen: " + getLastSeen() + "\n";
		ret += "Date Joined: " + getDateJoined() + "\n";
		return ret;
	}

}
